Component({
    properties: {
        item: {
            type: Object,
            value: {}
        }
    },
    data: {
    },
    methods: {
        onOrderAgain() {
          const products = this.properties.item.items
            products.forEach(product => {
                product.count = product.amount
                // 去掉前后引号
                product.specifications_s = JSON.parse(product.specifications)
            })
          getApp().globalData.selectedProduct = products
          getApp().globalData.count = this.properties.item.amount
          wx.navigateTo({
            url: '/pages/order-summary/order-summary',
          })
        }
    },
});
